
package org.codeforsurvive.utils;

import java.util.Hashtable;

/**
 *
 * @author Rohmad Raharjo
 */
public class Constants {
    
    private static Constants instance = new Constants();
    public enum ValueListCategory
    {
        AccessLevel,
        PaymentMethod,
        City,
        Bank,
    }
    
    private Constants()
    {
        load();
        
    }
    
    private Hashtable<ValueListCategory, String> categoryMap;
    private void load()
    {
        categoryMap = new Hashtable<>();
        categoryMap.put(ValueListCategory.City, "city");
        categoryMap.put(ValueListCategory.AccessLevel, "accesslevel");
        categoryMap.put(ValueListCategory.PaymentMethod, "paymentmethod");
        categoryMap.put(ValueListCategory.Bank, "bank");
    
    }
    
    public String getValueListCategory(ValueListCategory key)
    {
        return categoryMap.get(key);
    }
    
    public static Constants getInstance()
    {
        return instance;
    }
    
    
    
           
}
